<template>
    <view :class="isChild ? 'imgbg' : 'bg'">
        <Answer :matchId="matchId" :matchType="matchType" :companyName="companyName" :tax="tax"
            v-on:ChildEvent="showMsgfromChild"></Answer>
    </view>
</template>

<script>
import Answer from "./components/Answer.vue";
export default {
    components: {
        Answer,
    },
    data() {
        return {
            isChild: true,
            matchId: "",
            matchType: "",
            companyName: "",
            tax: ""
        };
    },
    onLoad(options) {
        this.companyName = options.companyName
        this.tax = options.tax
        if (options.id) {
            this.matchId = decodeURIComponent(options.id);
        }
        if (options.matchType) {
            this.matchType = options.matchType;
        }
    },
    methods: {
        showMsgfromChild(e) {
            this.isChild = e;
        },
    },
};
</script>

<style lang="scss">
page {
    width: 100%;
    height: 100%;
    background-color: #F2F9FF !important;



}
.imgbg {
    // background-image: url("@/pageHome/static/Answer/com_page.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    z-index: 1;
    padding: 72rpx 23rpx 53rpx 23rpx;
}

.bg {
    background: #fff;
    width: 100%;
    height: 100vh;
    z-index: 1;
    padding: 122rpx 23rpx 53rpx 23rpx;
}

</style>
